home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 196 < prev    next >
Encoding:
Text File  |  1996-08-06  |  1.4 KB  |  41 lines

  1. Path: engnews1.Eng.Sun.COM!taumet!clamage
  2. From: mlg@scr.siemens.com (Michael Greenberg)
  3. Newsgroups: comp.std.c++
  4. Subject: When can definitions of library functions be provided by a program?
  5. Date: 31 Jan 1996 20:44:58 GMT
  6. Organization: Siemens Corporate Research, Princeton, NJ
  7. Sender: news@scr.siemens.com (NeTnEwS)
  8. Approved: clamage@eng.sun.com (comp.std.c++)
  9. Message-ID: <DM2Bv9.C7p@scr.siemens.com>
  10. NNTP-Posting-Host: taumet.eng.sun.com
  11. X-Nntp-Posting-Host: tucker.scr.siemens.com
  12. Originator: clamage@taumet
  13.  
  14. I'm trying to figure out under what circumstances a program can supply
  15. a definition for a library function.  Is it the case that a program
  16. cannot supply a definition for any library function except for those
  17. listed in 17.3.3.4 (new & delete with various signatures)?
  18.  
  19. In other words (typos not withstanding), is
  20.  
  21. #include <string.h>
  22.  
  23. int std::strlen(const char*) { ... }
  24.  
  25. legal?  What if <string.h> is not included?
  26.  
  27. (As an aside, what's the 'C' standard have to say about this?)
  28.  
  29. Thanks,
  30.  
  31. --
  32. Michael Greenberg                      email: mgreenberg@scr.siemens.com
  33. Siemens Corporate Research             phone: 609-734-3347
  34. 755 College Road East                  fax: 609-734-6565
  35. Princeton, NJ 08540
  36.  
  37. [ comp.std.c++ is moderated.  Submission address: std-c++@ncar.ucar.edu.
  38.   Contact address: std-c++-request@ncar.ucar.edu.  The moderation policy
  39.   is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
  40.  
  41.